package cn.com.huzo.model.entities.trade;

import com.fasterxml.jackson.annotation.JsonFormat;
import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 产品计划明细记录实体类
 * <p>
 * @author 吴旭
 */
public class MasterProductionScheduleLinesEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = -833578532307823350L;
    private String LinesId;
    private Long HeaderId;
    private Long ProductId;
    private String CustomerName;
    private String StyleNo;
    private Integer Quantity;
    private String ProductColour;
    private Timestamp DateOfDelivery;
    private Timestamp DateOfColourCards;             // 色卡发放日期
    private Timestamp DateOfHandSample;              // 小样确认日期
    private Timestamp DateOfProductSheet;            // 生产指示书日期
    private Timestamp DateOfTechnicalDataFinish;     // 技术资料完成日期
    private Timestamp DateOfTechnicalDataIssue;      // 技术资料发放日期
    private Timestamp DateOfPieceYardage;            // 单耗完成日期
    private Timestamp DateOfMaterialRequirement;     // 原料调达表日期
    private Timestamp DateOfMaterialPrepared;        // 组料完成日期
    private Timestamp DateOfCuttingPrinting;         // 裁片印花日期
    private Timestamp DateOfChemicalInspection;      // 化检日期
    private Float Cmt;                               // 加工费
    private String Description;                      // 备注
    private Object PlanSchema;                       // 项目计划方案
    private Object ActualSchema;                     // 项目实际方案
    private Object StatusSchema;                     // 项目状况方案
    private List<MasterProductionScheduleLinesTrackEntity> TrackSchemaList;     // 用于保存项目状况方案

    public String getLinesId() {
        return LinesId;
    }

    public void setLinesId(String LinesId) {
        this.LinesId = LinesId;
    }

    public Long getHeaderId() {
        return HeaderId;
    }

    public void setHeaderId(Long HeaderId) {
        this.HeaderId = HeaderId;
    }

    public Long getProductId() {
        return ProductId;
    }

    public void setProductId(Long ProductId) {
        this.ProductId = ProductId;
    }

    public String getCustomerName() {
        return CustomerName;
    }

    public void setCustomerName(String CustomerName) {
        this.CustomerName = CustomerName;
    }

    public String getStyleNo() {
        return StyleNo;
    }

    public void setStyleNo(String StyleNo) {
        this.StyleNo = StyleNo;
    }

    public Integer getQuantity() {
        return Quantity;
    }

    public void setQuantity(Integer Quantity) {
        this.Quantity = Quantity;
    }

    public String getProductColour() {
        return ProductColour;
    }

    public void setProductColour(String ProductColour) {
        this.ProductColour = ProductColour;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfDelivery() {
        return DateOfDelivery;
    }

    public void setDateOfDelivery(Timestamp DateOfDelivery) {
        this.DateOfDelivery = DateOfDelivery;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfColourCards() {
        return DateOfColourCards;
    }

    public void setDateOfColourCards(Timestamp DateOfColourCards) {
        this.DateOfColourCards = DateOfColourCards;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfHandSample() {
        return DateOfHandSample;
    }

    public void setDateOfHandSample(Timestamp DateOfHandSample) {
        this.DateOfHandSample = DateOfHandSample;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfProductSheet() {
        return DateOfProductSheet;
    }

    public void setDateOfProductSheet(Timestamp DateOfProductSheet) {
        this.DateOfProductSheet = DateOfProductSheet;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfTechnicalDataFinish() {
        return DateOfTechnicalDataFinish;
    }

    public void setDateOfTechnicalDataFinish(Timestamp DateOfTechnicalDataFinish) {
        this.DateOfTechnicalDataFinish = DateOfTechnicalDataFinish;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfTechnicalDataIssue() {
        return DateOfTechnicalDataIssue;
    }

    public void setDateOfTechnicalDataIssue(Timestamp DateOfTechnicalDataIssue) {
        this.DateOfTechnicalDataIssue = DateOfTechnicalDataIssue;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfPieceYardage() {
        return DateOfPieceYardage;
    }

    public void setDateOfPieceYardage(Timestamp DateOfPieceYardage) {
        this.DateOfPieceYardage = DateOfPieceYardage;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfMaterialRequirement() {
        return DateOfMaterialRequirement;
    }

    public void setDateOfMaterialRequirement(Timestamp DateOfMaterialRequirement) {
        this.DateOfMaterialRequirement = DateOfMaterialRequirement;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfMaterialPrepared() {
        return DateOfMaterialPrepared;
    }

    public void setDateOfMaterialPrepared(Timestamp DateOfMaterialPrepared) {
        this.DateOfMaterialPrepared = DateOfMaterialPrepared;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfCuttingPrinting() {
        return DateOfCuttingPrinting;
    }

    public void setDateOfCuttingPrinting(Timestamp DateOfCuttingPrinting) {
        this.DateOfCuttingPrinting = DateOfCuttingPrinting;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    public Timestamp getDateOfChemicalInspection() {
        return DateOfChemicalInspection;
    }

    public void setDateOfChemicalInspection(Timestamp DateOfChemicalInspection) {
        this.DateOfChemicalInspection = DateOfChemicalInspection;
    }

    public Float getCmt() {
        return Cmt;
    }

    public void setCmt(Float Cmt) {
        this.Cmt = Cmt;
    }

    public String getDescription() {
        return Description;
    }

    public void setDescription(String Description) {
        this.Description = Description;
    }

    public Object getPlanSchema() {
        return PlanSchema;
    }

    public void setPlanSchema(Object PlanSchema) {
        this.PlanSchema = PlanSchema;
    }

    public Object getActualSchema() {
        return ActualSchema;
    }

    public void setActualSchema(Object ActualSchema) {
        this.ActualSchema = ActualSchema;
    }

    public Object getStatusSchema() {
        return StatusSchema;
    }

    public void setStatusSchema(Object StatusSchema) {
        this.StatusSchema = StatusSchema;
    }

    public List<MasterProductionScheduleLinesTrackEntity> getTrackSchemaList() {
        return TrackSchemaList;
    }

    public void setTrackSchemaList(List<MasterProductionScheduleLinesTrackEntity> TrackSchemaList) {
        this.TrackSchemaList = TrackSchemaList;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MasterProductionScheduleLinesEntity)) {
            return false;
        }

        final MasterProductionScheduleLinesEntity that = (MasterProductionScheduleLinesEntity) o;

        return new EqualsBuilder()
                .append(this.getLinesId(), that.getLinesId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getLinesId().hashCode();
        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
